<!-- The file upload form used as target for the file upload widget -->
<?php if ($this->showForm) echo CHtml::beginForm($this->url, 'post', $this->htmlOptions); ?>
<div class="padding20px">
    <div class="fileupload-buttonbar">
        <div class="row pic-btn">
            <!-- The fileinput-button span is used to style the file input field as button -->
            <div class="col-lg-12 column12 mopo">
                <span class="btn fileinput-button">
                    <em class="sprite addIcon">&nbsp;</em>
                    <span><?php echo $this->t('1#+Add files|0#Choose file', $this->multiple); ?></span>
                    <?php
                    if ($this->hasModel()) :
                        echo CHtml::activeFileField($this->model, $this->attribute, $htmlOptions) . "\n";
                    else :
                        echo CHtml::fileField($name, $this->value, $htmlOptions) . "\n";
                    endif;
                    ?>
                </span>

                <?php if ($this->multiple) { ?>
                    <button type="submit" class="btn start multipleImage">
                        <em class="sprite successIcon">&nbsp;</em>
                        <span>upload</span>
                    </button>

                    <!--            <div class="floatL">
                                    <div class="checkboxContainer">
                                        <div class="left">
                                            <input type="checkbox" class="toggle" style="margin: 11px 1px 0px 12px">
                                       </div>
                                        <div class="right">
                                        </div>
                                        <div class="clear"></div>                                       
                                    </div>
                                </div>
                                <div class="floatL">
                                    <button type="button" class="btn-green delete cancelImage">
                                        <span>Delete</span>
                                    </button>
                    
                                </div>-->


                <?php } ?>
            </div></div>
    </div>

    <div class="span5">
        <!-- The global progress bar -->
        <div class="progress progress-success progress-striped active fade">
            <div class="bar" style="width:0%;"></div>
        </div>
    </div>
</div>
<!-- The loading indicator is shown during image processing -->
<div class="fileupload-loading"></div>
<br>
<!-- The table listing the files available for upload/download -->
<table class="table table-striped">
    <tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody>
</table>

<?php if ($this->showForm) echo CHtml::endForm(); ?>
